package com.changgou.goods.feign;

import com.changgou.entity.Result;
import com.changgou.goods.pojo.Sku;
import com.changgou.goods.pojo.Spu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @ProjectName: changgou_parent
 * @Package: com.changgou.goods.feign
 * @ClassName: SkuFeign
 * @Author: 孙明田
 * @Description: 远程调用
 * @Date: 2020/6/19 10:29
 * @Version: 1.0
 */

@FeignClient(name = "goods")
public interface SpuFeign {

    @GetMapping(value = "/spu/findSpuById/{id}")
    Result<Spu> findSpuById(@PathVariable String id);
}
